package com.hou.jvm;

// -Xss128k 设置每个线程的栈大小
public class JvmStackTest {
    public Integer num=1;
    public void numplus(){
        num++;
        numplus();
    }
    public static void main(String[] args) {
        final JvmStackTest numplus = new JvmStackTest();
        try{
            numplus.numplus();
        }catch(Throwable e){ //Throwable 最顶级异常类,Exception和Error的父类
            System.out.println(numplus.num);
            throw e;
        }
    }

}
